package dgut.haitaobao.service;

import dgut.haitaobao.vo.param.ShoppingCartParamsVO;
import dgut.haitaobao.util.response.HttpResponse;
import dgut.haitaobao.vo.param.ShoppingCartUpdateCartNumParamVO;

import java.util.List;

public interface ShoppingCartService {
    //查询购物车列表
    public HttpResponse getShoppingCarts(String userId);

    //添加购物车
    public HttpResponse addShoppingCar(ShoppingCartParamsVO shoppingCartParamsVO);

    //修改购物车中的商品数量
    public HttpResponse updateCartNumByCartId(ShoppingCartUpdateCartNumParamVO paramVO);

    public HttpResponse getShoppingCartsByCartIds(List<Integer> cartIds);

    public HttpResponse deleteShoppingCart(int parseInt);
}
